﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Retirement/retirement.master" AutoEventWireup="true"
    CodeFile="myPortfolio.aspx.cs" Inherits="Retirement_myPorfolio" %>

<asp:Content ID="Content" ContentPlaceHolderID="retirement_ContentPlaceHolder" runat="Server">
    
    <h2 id="heading">
        <a href="../home.aspx">World Trade Bank</a> > <a href="home.aspx">Retirement</a>
        > My Portfolio</h2>
    <style type="text/css">
        .tbl_legend td
        {
            text-align: center;
            border: 0.1px solid #808080;
        }
        
        .tbl_myFunds th, td
        {
            border: 1px solid #808080;
            text-align: left;
            height:30px;
        }
        .tbl_myFunds th
        {
            background-color: #B40404;
            color: #FFFFFF;
        }
        
        .Grid th  
        {
            background-color: #B40404;
            color: #FFFFFF;
            height:30px;
        }
        .style1
        {
            height: 30px;
        }
    </style>


    <%
    
    if (this.policies == null || this.policies.Count == 0)
    {
       %>
       <asp:Label ID="lb_noPolicy" runat="server" Text="You don't have our retirement plan yet. Kindly make appointment with our representatives to apply for the plan with the link below:"></asp:Label><br /><br />
       <asp:HyperLink ID="HyperLink_appointment" runat="server" NavigateUrl="~/retirement/onlineAppointment.aspx">Make An Appointment</asp:HyperLink>
       <% 
    }
    else
    {
      
    %>

    <p style="font-family: 'Oxygen', Arial; font-weight: bold; font-size: 40px">
        My Funds</p>
    <br />

   <%-- <table class="tbl_legend" width="30%" style="float: right">
        <tr>
            <td>
                Legend
            </td>
            <td>
                <asp:Image ID="legend_PriceUp" runat="server" ImageUrl="~/Retirement/Images/price_up.gif" />
            </td>
            <td>
                <asp:Image ID="legend_PriceDown" runat="server" ImageUrl="~/Retirement/Images/price_down.gif" />
            </td>
            <td>
                <asp:Image ID="legend_PriceNoChange" runat="server" ImageUrl="~/Retirement/Images/no_change.gif" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Price Up
            </td>
            <td>
                Price Down
            </td>
            <td>
                No Change
            </td>
        </tr>
    </table>--%>

    <p>
    <asp:GridView ID="gv_funds" runat="server" 
        AutoGenerateColumns="False" Width="100%" CssClass="Grid">
        <Columns>
            <asp:BoundField DataField="name" HeaderText="Fund Name" />
            <asp:BoundField DataField="currency" HeaderText="Currency" />
            <asp:BoundField DataField="offerPrice" HeaderText="Offer Price" />
            <asp:BoundField DataField="bidPrice" HeaderText="Bid Price" />
            <asp:BoundField DataField="valuationDate" DataFormatString="{0:d}" 
                HeaderText="Valuation Date" />
            <asp:BoundField DataField="investUnits" HeaderText="No. of Units" />
        </Columns>
    </asp:GridView>
    </p>
    <br />
<%--<table class="tbl_myFunds" width="100%" style="border-collapse: collapse">
        <colgroup>
            <col style="">
            <col style="width: 40%; text-align: left;">
            <col style="text-align: left">
            <col style="text-align: left;">
            <col style="text-align: left">
            <col style="text-align: left;">
            <col style="text-align: left;">
        </colgroup>
        <tr>
            <th class="style1">
            </th>
            <th class="style1">
                Fund Name
            </th>
            <th class="style1">
                Currency
            </th>
            <th class="style1">
                Offer Price
            </th>
            <th class="style1">
                Bid Price
            </th>
            <th class="style1">
                Valuation Date
            </th>
            <th class="style1">
                Price Status
            </th>
        </tr>
        <tr>
            <td>
                <asp:Image ID="arrow_AsiaFund" runat="server" ImageUrl="~/Retirement/Images/arrow_right.gif" />
            </td>
            <td>
                WorldTrade Asia Fund
            </td>
            <td>
                S$
            </td>
            <td>
                2.454
            </td>
            <td>
                2.331
            </td>
            <td>
                11/20/14
            </td>
            <td>
                <asp:Image ID="priceStatus_AsiaFund" runat="server" ImageUrl="~/Retirement/Images/no_change.gif" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Image ID="arrow_ChinaEquityFund" runat="server" ImageUrl="~/Retirement/Images/arrow_right.gif" />
            </td>
            <td>
                WorldTrade China Equity Fund
            </td>
            <td>
                S$
            </td>
            <td>
                2.047
            </td>
            <td>
                1.944
            </td>
            <td>
                11/20/14
            </td>
            <td>
                <asp:Image ID="priceStatus_ChinaEquityFund" runat="server" ImageUrl="~/Retirement/Images/price_up.gif" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Image ID="arrow_GlobalEquityFund" runat="server" ImageUrl="~/Retirement/Images/arrow_right.gif" />
            </td>
            <td>
                WorldTrade Global Equity Fund
            </td>
            <td>
                S$
            </td>
            <td>
                0.935
            </td>
            <td>
                0.898
            </td>
            <td>
                11/20/14
            </td>
            <td>
                <asp:Image ID="priceStatus_GlobalEquityFund" runat="server" ImageUrl="~/Retirement/Images/price_up.gif" />
            </td>
        </tr>
    </table>--%>
        <p style="font-family: 'Oxygen', Arial; font-weight: bold; font-size: 40px">
       Fund Swich</p>
    <br />
    Please complete the <a href="fundSwitch.aspx" style="color:#B40404"; target="_blank">FlexiProtect Fund Switch / Premium Redirection</a> application.<br /><br />
    
    <p style="font-family: 'Oxygen', Arial; font-weight: bold; font-size: 40px">
       Single Premium Top-Up</p>
    <br />
    Please complete the <a href="premiumTopUp.aspx" style="color:#B40404"; target="_blank">FlexiProtect Single Premium Top-Up</a> application.<br /><br />
   <%
    }
     %>
</asp:Content>
